package domain.dao.event;

import core.util.MyBatisRepository;
import domain.entity.event.EventMessageInfo;
import org.apache.ibatis.annotations.Param;

/**
 * Created by bowen on 2017-08-17.
 */
@MyBatisRepository
public interface EventMessageInfoDao {

    /**
     *
     * @param messageInfo
     * @return
     */
    public void create(EventMessageInfo messageInfo);

    public int getTotalUnread(@Param(value = "eventId")long eventId,@Param(value = "userId")String userId);

    public int getMyTotalUnread(String userId);

    public int getAtTotalUnread(String userId);

    public int getPublicTotalUnread(String userId);

}
